#
# Shell script para o TP2 de Computação Natural
#
reset

rm ../bin/*
javac -cp ../bin/ ../src/*.java
mv ../src/*.class ../bin/
jar cfm tp2.jar ../src/Manifest.mf ../bin/*

echo "Proteína: hphpphhphpphphhpphph"
echo "Experimentos variando o número máximo de iterações"
echo "Número máximo de iterações: 50"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 50 -f 100 -i 0.25 -e 0.1 -o "experimentoP1MaxIter50.txt" -s -9
echo "Número máximo de iterações: 100"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP1MaxIter100.txt" -s -9
echo "Número máximo de iterações: 200"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 200 -f 100 -i 0.25 -e 0.1 -o "experimentoP1MaxIter200.txt" -s -9

echo "Experimentos variando o número de formigas"
echo "Número de formigas: 50"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 50 -i 0.25 -e 0.1 -o "experimentoP1Form50.txt" -s -9
echo "Número de formigas: 100"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP1Form100.txt" -s -9
echo "Número de formigas: 200"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 200 -i 0.25 -e 0.1 -o "experimentoP1Form200.txt" -s -9

echo "Experimentos variando a taxa inicial de feromônio"
echo "Taxa inicial de feromônio: 0.25"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP1FerIni025.txt" -s -9
echo "Taxa inicial de feromônio: 0.5"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.5 -e 0.1 -o "experimentoP1FerIni05.txt" -s -9
echo "Taxa inicial de feromônio: 0.75"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.75 -e 0.1 -o "experimentoP1FerIni075.txt" -s -9

echo "Experimentos variando a taxa de evaporação de feromônio"
echo "Taxa de evaporação de feromônio: 0.1"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP1EvapFerom01.txt" -s -9
echo "Taxa de evaporação de feromônio: 0.35"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.35 -o "experimentoP1EvapFerom035.txt" -s -9
echo "Taxa de evaporação de feromônio: 0.65"
java -cp ../bin/ Main -p "hphpphhphpphphhpphph" -m 100 -f 100 -i 0.25 -e 0.65 -o "experimentoP1EvapFerom065.txt" -s -9



echo "Proteína: ppphhpphhppppphhhhhhhpphhpppphhpphpp"
echo "Experimentos variando o número máximo de iterações"
echo "Número máximo de iterações: 50"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 50 -f 100 -i 0.25 -e 0.1 -o "experimentoP2MaxIter50.txt" -s -14
echo "Número máximo de iterações: 100"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP2MaxIter100.txt" -s -14
echo "Número máximo de iterações: 200"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 200 -f 100 -i 0.25 -e 0.1 -o "experimentoP2MaxIter200.txt" -s -14

echo "Experimentos variando o número de formigas"
echo "Número de formigas: 50"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 50 -i 0.25 -e 0.1 -o "experimentoP2Form50.txt" -s -14
echo "Número de formigas: 100"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP2Form100.txt" -s -14
echo "Número de formigas: 200"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 200 -i 0.25 -e 0.1 -o "experimentoP2Form200.txt" -s -14

echo "Experimentos variando a taxa inicial de feromônio"
echo "Taxa inicial de feromônio: 0.25"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP2FerIni025.txt" -s -14
echo "Taxa inicial de feromônio: 0.5"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.5 -e 0.1 -o "experimentoP2FerIni05.txt" -s -14
echo "Taxa inicial de feromônio: 0.75"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.75 -e 0.1 -o "experimentoP2FerIni075.txt" -s -14

echo "Experimentos variando a taxa de evaporação de feromônio"
echo "Taxa de evaporação de feromônio: 0.1"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP2EvapFerom01.txt" -s -14
echo "Taxa de evaporação de feromônio: 0.35"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.35 -o "experimentoP2EvapFerom035.txt" -s -14
echo "Taxa de evaporação de feromônio: 0.65"
java -cp ../bin/ Main -p "ppphhpphhppppphhhhhhhpphhpppphhpphpp" -m 100 -f 100 -i 0.25 -e 0.65 -o "experimentoP2EvapFerom065.txt" -s -14



echo "Proteína: hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh"
echo "Experimentos variando o número máximo de iterações"
echo "Número máximo de iterações: 50"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 50 -f 100 -i 0.25 -e 0.1 -o "experimentoP3MaxIter50.txt" -s -21
echo "Número máximo de iterações: 100"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP3MaxIter100.txt" -s -21
echo "Número máximo de iterações: 200"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 200 -f 100 -i 0.25 -e 0.1 -o "experimentoP3MaxIter200.txt" -s -21

echo "Experimentos variando o número de formigas"
echo "Número de formigas: 50"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 50 -i 0.25 -e 0.1 -o "experimentoP3Form50.txt" -s -21
echo "Número de formigas: 100"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP3Form100.txt" -s -21
echo "Número de formigas: 200"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 200 -i 0.25 -e 0.1 -o "experimentoP3Form200.txt" -s -21

echo "Experimentos variando a taxa inicial de feromônio"
echo "Taxa inicial de feromônio: 0.25"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP3FerIni025.txt" -s -21
echo "Taxa inicial de feromônio: 0.5"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.5 -e 0.1 -o "experimentoP3FerIni05.txt" -s -21
echo "Taxa inicial de feromônio: 0.75"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.75 -e 0.1 -o "experimentoP3FerIni075.txt" -s -21

echo "Experimentos variando a taxa de evaporação de feromônio"
echo "Taxa de evaporação de feromônio: 0.1"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP3EvapFerom01.txt" -s -21
echo "Taxa de evaporação de feromônio: 0.35"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.35 -o "experimentoP3EvapFerom035.txt" -s -21
echo "Taxa de evaporação de feromônio: 0.65"
java -cp ../bin/ Main -p "hhphphphphhhhphppphppphpppphppphppphphhhhphphphphh" -m 100 -f 100 -i 0.25 -e 0.65 -o "experimentoP3EvapFerom065.txt" -s -21




echo "Proteína: hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh"
echo "Experimentos variando o número máximo de iterações"
echo "Número máximo de iterações: 50"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 50 -f 100 -i 0.25 -e 0.1 -o "experimentoP4MaxIter50.txt" -s -42
echo "Número máximo de iterações: 100"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP4MaxIter100.txt" -s -42
echo "Número máximo de iterações: 200"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 200 -f 100 -i 0.25 -e 0.1 -o "experimentoP4MaxIter200.txt" -s -42

echo "Experimentos variando o número de formigas"
echo "Número de formigas: 50"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 50 -i 0.25 -e 0.1 -o "experimentoP4Form50.txt" -s -42
echo "Número de formigas: 100"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP4Form100.txt" -s -42
echo "Número de formigas: 200"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 200 -i 0.25 -e 0.1 -o "experimentoP4Form200.txt" -s -42

echo "Experimentos variando a taxa inicial de feromônio"
echo "Taxa inicial de feromônio: 0.25"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP4FerIni025.txt" -s -42
echo "Taxa inicial de feromônio: 0.5"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.5 -e 0.1 -o "experimentoP4FerIni05.txt" -s -42
echo "Taxa inicial de feromônio: 0.75"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.75 -e 0.1 -o "experimentoP4FerIni075.txt" -s -42

echo "Experimentos variando a taxa de evaporação de feromônio"
echo "Taxa de evaporação de feromônio: 0.1"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.1 -o "experimentoP4EvapFerom01.txt" -s -42
echo "Taxa de evaporação de feromônio: 0.35"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.35 -o "experimentoP4EvapFerom035.txt" -s -42
echo "Taxa de evaporação de feromônio: 0.65"
java -cp ../bin/ Main -p "hhhhhhhhhhhhphphpphhpphhpphpphhpphhpphpphhpphhpphphphhhhhhhhhhhh" -m 100 -f 100 -i 0.25 -e 0.65 -o "experimentoP4EvapFerom065.txt" -s -42


